﻿namespace JetBlack.FeedBus.Distributor.Config
{
    /// <summary>
    /// A class representing the configuration of an adapter.
    /// </summary>
    /// <remarks>
    /// For an example of a possible configuration <see cref="Handler"/>.
    /// </remarks>
    public class Adapter
    {
        /// <summary>
        /// The configuration name.
        /// </summary>
        public string Name;

        /// <summary>
        /// The port to connect to.
        /// </summary>
        public int Port;

        /// <summary>
        /// Construct an adapter configuration object.
        /// </summary>
        /// <param name="name">The configuration name.</param>
        /// <param name="port">The configuration port.</param>
        public Adapter(string name, int port)
        {
            Name = name;
            Port = port;
        }
    }
}
